package com.library.admin.modules.userrole.struct;

import org.mapstruct.*;
import com.library.admin.modules.userrole.entity.UserRole;
import com.library.admin.modules.userrole.vo.UserRoleVO;
import com.library.admin.modules.userrole.bo.UserRoleInsert;
import com.library.admin.modules.userrole.bo.UserRoleUpdate;

/**
 * 用户和角色关联表(UserRole)对象映射转换
 *
 * @author xyh
 * @since 2023-10-02
 */
@Mapper(componentModel = "spring", nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
public interface UserRoleStructMapper {

    UserRole updateToUserRole(UserRoleUpdate update);

    UserRole insertToUserRole(UserRoleInsert insert);

    UserRoleVO userRoleToUserRoleVO(UserRole userRole);

}

